<?php
class Company extends Doctrine_Record
{
    public function setTableDefinition()
    {
        $this->hasColumn('company_name', 'string', 255);
        $this->hasColumn('share_point_link', 'string', 1000);
        $this->hasColumn('ip', 'string', 255);
        $this->hasColumn('disabled', 'integer', 1);
        $this->hasColumn('job_creation', 'string', 1000);
    }
    public function setUp()
    {
        $this->actAs('Timestampable');
         $this->hasMany('Company_gear as Company_gears', array(
                'local' => 'id',
                'foreign' => 'company_id'
            )
        );
          
        $this->hasMany('Act as Act', array(
                'local' => 'id',
                'foreign' => 'company_id'
            )
        );
        $this->hasMany('User as Users', array(
                'local' => 'id',
                'foreign' => 'company_id'
            )
        );
    }

}


